Optimal. Leaf size=19 \[ -\frac {\tanh ^{-1}\left (\frac {2-3 x}{\sqrt {10}}\right )}{\sqrt {10}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {632, 212}
\begin {gather*} -\frac {\tanh ^{-1}\left (\frac {2-3 x}{\sqrt {10}}\right )}{\sqrt {10}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 632
Rubi steps
\begin {align*} \int \frac {1}{2+4 x-3 x^2} \, dx &=-\left (2 \text {Subst}\left (\int \frac {1}{40-x^2} \, dx,x,4-6 x\right )\right )\\ &=-\frac {\tanh ^{-1}\left (\frac {2-3 x}{\sqrt {10}}\right )}{\sqrt {10}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 34, normalized size = 1.79 \begin {gather*} \frac {-\log \left (2+\sqrt {10}-3 x\right )+\log \left (-2+\sqrt {10}+3 x\right )}{2 \sqrt {10}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.55, size = 17, normalized size = 0.89
method | result | size |
default | \(\frac {\sqrt {10}\, \arctanh \left (\frac {\left (6 x -4\right ) \sqrt {10}}{20}\right )}{10}\) | \(17\) |
risch | \(\frac {\sqrt {10}\, \ln \left (3 x -2+\sqrt {10}\right )}{20}-\frac {\sqrt {10}\, \ln \left (3 x -2-\sqrt {10}\right )}{20}\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 27, normalized size = 1.42 \begin {gather*} -\frac {1}{20} \, \sqrt {10} \log \left (\frac {3 \, x - \sqrt {10} - 2}{3 \, x + \sqrt {10} - 2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 39 vs.
\(2 (16) = 32\).
time = 1.98, size = 39, normalized size = 2.05 \begin {gather*} \frac {1}{20} \, \sqrt {10} \log \left (\frac {9 \, x^{2} + 2 \, \sqrt {10} {\left (3 \, x - 2\right )} - 12 \, x + 14}{3 \, x^{2} - 4 \, x - 2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.04, size = 39, normalized size = 2.05 \begin {gather*} \frac {\sqrt {10} \log {\left (x - \frac {2}{3} + \frac {\sqrt {10}}{3} \right )}}{20} - \frac {\sqrt {10} \log {\left (x - \frac {\sqrt {10}}{3} - \frac {2}{3} \right )}}{20} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.84, size = 31, normalized size = 1.63 \begin {gather*} -\frac {1}{20} \, \sqrt {10} \log \left (\frac {{\left | 6 \, x - 2 \, \sqrt {10} - 4 \right |}}{{\left | 6 \, x + 2 \, \sqrt {10} - 4 \right |}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.21, size = 15, normalized size = 0.79 \begin {gather*} \frac {\sqrt {10}\,\mathrm {atanh}\left (\sqrt {10}\,\left (\frac {3\,x}{10}-\frac {1}{5}\right )\right )}{10} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________